home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16837 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  38 lines

  1. Path: news.netspace.net.au!usenet
  2. From: billmcin@netspace.net.au (Bill McIntosh)
  3. Newsgroups: comp.lang.c++
  4. Subject: Using asm functions as class members!
  5. Date: 12 Apr 1996 09:08:27 GMT
  6. Organization: Torus Games
  7. Message-ID: <4kl6ic$dr6@otis.netspace.net.au>
  8. NNTP-Posting-Host: dialup-b1-69.mel.netspace.net.au
  9. X-Newsreader: WinVN 0.92.6+
  10.  
  11.  
  12.  
  13. Ive been having a trouble trying to generate a class with
  14. member functions that are assembly routines in external .asm files.
  15. I want the assembler function to have access to the specific
  16. object's data, but am not having much success.
  17.  
  18. ie.
  19. class test {
  20.     int a;
  21.  
  22.     void asmfunction();  // ???
  23. }
  24. so, inside the asmfunction() which is actually written TEST.ASM for
  25.  example, I want it to be able to use 'a' properly as it's object's
  26. data.
  27.  
  28. Can anyone help me with this?  Im currently using a really bad hack
  29. of calling a global c function which then calls the asm function and 
  30. it sucks.
  31. I am using watcom 10.5 and wasm but i dont really think this is too
  32. relevant seeing as it is a pretty generic problem.
  33.  
  34. Thanks!
  35. Brett
  36. (ps.  It would be appreciated if any answers could be mailed becuase
  37. I dont get to read news much..)
  38.